<?php

require_once BaseUtil::getModulePath("base") . '/models/BaseDao.php';

class EmailTemplateDao extends BaseDao {
	
	protected $_name;
	
	public function _setup() {
		$this->_name = $this->prefix() . "email_templates";
		parent::_setup();	
	}
	
	public function updateTemplate($data,$id) {
		$where = $this->db_w->quoteInto('id=?',$id);
		$this->updateData($data,$where);
	}
	
	public function deleteTemplate($id) {
		$isDel = array("is_delete" => 1);
		$where = $this->db_w->quoteInto('id=?',$id);
		$this->updateData($isDel,$where);
	}
}